package com.mvc4g.example.client.action;

import com.mvc4g.client.ActionInterface;
import com.mvc4g.client.Controller;
import com.mvc4g.example.client.Constants;
import com.mvc4g.example.client.view.MainView;
import com.mvc4g.example.client.view.user.CreateUserView;

public class DisplayUserCreationPageAction implements ActionInterface, Constants {

	@Override
	public void execute(Controller controller, Object form) {
		MainView mainView = (MainView) controller.getView(MAIN_VIEW);
		CreateUserView createView = (CreateUserView) controller
				.getView(CREATE_VIEW);
		mainView.hideMessage();
		mainView.changePage(createView);
	}

}
